<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景滤镜</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: #d8a;
        }

        .avatar {
            object-fit: contain;
            height: 300px;
            width: 300px;
        }

        .item1 {
            /* 人物阴影,需要透明度*/
            filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.5));
            /* 模糊 */
            /* filter: blur(10px); */
        }

        .item2 {
            /* 对比度 */
            filter: contrast(200%);
            /* 灰白度 */
            /* filter: grayscale(1); */
            /* backdrop-filter: blur(2px); */
        }

        .card {
            text-align: center;
            width: 400px;
            height: 200px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 25px;
            box-shadow: 0 0 80px rgba(0, 0, 0, 0.2);
            /* 磨砂玻璃 */
            backdrop-filter: blur(2px);
            position: absolute;
            top: 0;
            left: 300px;
        }

        .back {
            width: 100%;
            height: 400px;
            display: flex;
            flex-wrap: wrap;
        }

        .thing {
            overflow: hidden;
            width: 200px;
            height: 200px;
            border: 1px solid #eee;
        }
        /* 渐变 */
        .thing1 {
            background: linear-gradient(to bottom, #1abc9c, #40356a);
        }

        .thing2 {
            background: radial-gradient(circle, #ffb457, #40356a);
        }

        .thing3 {
            background: repeating-linear-gradient(to bottom, #ffb457, #40356a 20%);
        }

        .thing4 {
            background: repeating-radial-gradient(circle, #ffb457, #40356a 20%);
        }

        .thing5 {
            background: conic-gradient(from 45deg, red, yellow, lime, aqua, blue, magenta, red);
        }

        .container {
            display: grid;
        }

        .box {
            margin: 5px;
            width: 300px;
            height: 500px;
            display: flex;
            flex-direction: column;
            background-color: #eee;
            border-radius: 10px;
        }

        .box .itemimg img {
            width: 100%;
            height: 400px;
            object-fit: cover;
        }

        .box .name {
            font-size: 20px;
            font-weight: 600;
            margin: 10px;
        }

        .box .itemimg {
            position: relative;
        }
        .box .itemimg .nihao {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100px;
            background-color: rgba(255, 255, 255, 0.5);
            display: flex;
            justify-content: space-between;
        }
        .box .itemifg {
            display: flex;
            justify-content: space-between;
            margin: 10px;
        }

        .box .itemifg .category {
            font-size: 16px;
            color: #999;
        }
    </style>
</head>

<body>
    <img src="bochi.png" class="avatar item1" alt="">
    <img src="bochi.png" class="avatar item2" alt="">
    <div class="card">
        <span>Hello</span>
    </div>
    <div class="back">
        <div class="thing thing1"></div>
        <div class="thing thing2"></div>
        <div class="thing thing3"></div>
        <div class="thing thing4"></div>
        <div class="thing thing5"></div>
        <div class="thing thing6"></div>
    </div>
    <hr>
    <div class="container">
        <div class="box">
            <div class="itemimg">
                <img src="img.jpg" alt="">
                <div class="nihao">
                    <p class="jieshao">我觉得这个手机是真的好,好的不得了。</p>
                    <p class="seller">张德明</p>
                </div>
            </div>
            <p class="name">华为IPHONE</p>
            <div class="itemifg">
                <span class="category">手机</span>
                <span class="price">￥9999</span>
            </div>
        </div>
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
    </div>
</body>

</html>